package com.zhenyi.youqu.config;

import com.jfinal.config.Routes;
import com.zhenyi.youqu.admin.index.CategoryController;
import com.zhenyi.youqu.admin.index.ItemController;
import com.zhenyi.youqu.admin.index.ShopController;
import com.zhenyi.youqu.admin.index.ShopUserController;
import com.zhenyi.youqu.api.AliBillController;
import com.zhenyi.youqu.api.ApiController;
import com.zhenyi.youqu.api.BillController;
import com.zhenyi.youqu.api.FileController;
import com.zhenyi.youqu.miniapp.AuthController;
import com.zhenyi.youqu.miniapp.CartController;
import com.zhenyi.youqu.miniapp.GroupController;
import com.zhenyi.youqu.miniapp.HomeController;
import com.zhenyi.youqu.miniapp.LocationController;
import com.zhenyi.youqu.miniapp.ModelController;
import com.zhenyi.youqu.miniapp.OrderController;
import com.zhenyi.youqu.miniapp.ProductController;
import com.zhenyi.youqu.miniapp.UserController;

public class YQRoutes extends Routes {

	@Override
	public void config() {
		add("/yq/api", ApiController.class);
		add("/yq/api/file", FileController.class);
		add("/yq/api/bill", BillController.class);
		add("/yq/api/ali", AliBillController.class);
		add("/yq/item", HomeController.class);
		add("/yq/product", ProductController.class);
		add("/yq/order", OrderController.class);
		add("/yq/auth", AuthController.class);
		add("/yq/group", GroupController.class);
		add("/yq/user", UserController.class);
		add("/yq/cart", CartController.class);
		add("/yq/model", ModelController.class);

		add("/yq/app/shopUser", com.zhenyi.youqu.app.ShopUserController.class);

		add("/yq/admin/auth", com.zhenyi.youqu.admin.index.AuthController.class);
		add("/yq/admin/item", ItemController.class);
		add("/yq/admin/product", com.zhenyi.youqu.admin.index.ProductController.class);
		add("/yq/admin/order", com.zhenyi.youqu.admin.index.OrderController.class);
		add("/yq/admin/shop", ShopController.class);
		add("/yq/admin/shopUser", ShopUserController.class);
		add("/yq/admin/category", CategoryController.class);
		add("/yq/admin/group", com.zhenyi.youqu.admin.index.GroupController.class);
		add("/yq/admin/user", com.zhenyi.youqu.admin.index.UserController.class);
		add("/yq/admin/model", com.zhenyi.youqu.admin.index.ModelController.class);

		add("/yq/adminShop/shop", com.zhenyi.youqu.adminShop.index.ShopController.class);

		add("/yq/location", LocationController.class);
	}

}
